<%@ page language="java" import="java.util.*,entitybean.oc_station_ben.EntityBeanOc_Station_Ben;" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List<EntityBeanOc_Station_Ben> list=(List<EntityBeanOc_Station_Ben>)request.getAttribute("list");

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>按照航次选择 </title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script language="javascript">
	function submit_me()
	{
		//window.alert("返回站点中的值");
		var hangci_return="";
		var hangci=document.getElementsByName("hangci");
		for ( var i = 0; i < hangci.length; i++) {
				if(hangci[i].checked==true)
				{
					hangci_return=hangci_return+hangci[i].value +",";
					}
			}
		//window.alert("hangci_return="+hangci_return);
		window.returnValue=hangci_return;
		window.close();
		}
	</script>
  </head>
  
  <body>
  <br>
  <table width="500" border="0" cellspacing="1" cellpadding="1">
    <tr>
      <td>选择</td>
      <td>站点名</td>
      <td>经纬度</td>
    </tr>
    <%for(int i=0;i<list.size();i++)
    { 
    
    %>
    <tr>
      <td><input type="checkbox" name="hangci" id="hangci" value="<%=list.get(i).getId()+" "+list.get(i).getStation_name()%>" ></td>
      <td><%=list.get(i).getStation_name()%></td>
      <td><%=list.get(i).getLongitude()+"  "+list.get(i).getDimensionality() %></td>
    </tr>
    <%
    } %>
  </table>
  <table width="500" border="0" cellspacing="1" cellpadding="1">
    <tr>
      <td align="right"><input type="button" name="button" id="button" value="确认" onClick="submit_me()"></td>
    </tr>
  </table>
  </body>
</html>
